package com.yy.glide.load.data;

/**
 * 获取数据
 */
public interface DataFetcher<Data> {
    interface DataFetcherCallBack<Data> {
        void onFetcherReady(Data data);

        void onLoadFailed(Exception e);
    }

    void loadData(DataFetcherCallBack<Data> dataFetcher);

    void cancel();


}
